﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;

namespace ACC.Extensions.PCClient.Entities
{
    /// <summary>
    /// 日志类
    /// </summary>
    public class HistoryLog : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        /// <summary>
        /// 日志时间
        /// </summary>
        private string logTime;
        public string LogTime
        {
            get { return logTime; }
            set
            {
                logTime = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("LogTime"));
                }
            }
        }

        /// <summary>
        /// 日志内容
        /// </summary>
        private string logDesc;

        public string LogDesc
        {
            get { return logDesc; }
            set
            {
                logDesc = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("LogDesc"));
                }
            }
        }

        /// <summary>
        /// 是否为错误
        /// </summary>
        private bool isError;
        public bool IsError
        {
            get { return isError; }
            set
            {
                isError = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("IsError"));
                }
            }
        }
    }   
}
